import jsonschema

data = {
    "success":"打倒小日本,推翻美国!",
    "mobile":12345678910
}

schema = {
    "type":"object",
    "properties":{
        "success":{"pattern":"小日本"},
        "mobile":{"pattern":"^[0-9]{11}$"}
    }
}
res = jsonschema.validate(instance=data,schema=schema)
print("res=", res)